翻訳と辞書
Words near each other
・ Anonymous matching
・ Anonymous Online Speakers v. United States District Court for the District of Nevada
・ Anonymous P2P
・ Anonymous peer review
・ Anonymous pipe
・ Anonymous post
・ Anonymous Raw General Manager
・ Anonymous recursion
・ Anonymous remailer
・ Anonymous Rex
・ Anonymous Rex (film)
・ Anonymous Rex (novel)
・ Anonymous sex
・ Anonymous social media
・ Anonymous Tombs in Amarna
Anonymous type
・ Anonymous veto network
・ Anonymous visitor tracking
・ Anonymous Was a Woman
・ Anonymous web browsing
・ Anonymous work
・ Anonymous-OS
・ AnonymousCulture
・ Anonymously Yours
・ Anonymus
・ Anonymus (band)
・ Anonymus (chronicler)
・ Anonymus Londinensis
・ Anonymus Valesianus
・ Anonébéré


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Anonymous type : ウィキペディア英語版
Anonymous type
Anonymous types are a feature of C# 3.0, Visual Basic .NET 9.0, Oxygene, and Scala that allows data types to encapsulate a set of properties into a single object without having to first explicitly define a type. This is an important feature for the SQL-like LINQ feature that is integrated into C# and VB.net. Since anonymous types do not have a named typing, they must be stored in variables declared using the var keyword, telling the C# compiler to use type inference for the variable. The properties created are read-only in C#, however they are read-write in VB.net.
This feature should not be confused with dynamic typing. While anonymous types allow programmers to define fields seemingly "on the fly," they are still static entities. Type checking is done at compile time, and attempting to access a nonexistent field will cause a compiler error. This gives programmers much of the convenience of a dynamic language, with the type safety of a statically typed language.
==Example (C#)==

var person = new ;
Console.WriteLine(person.lastName);
Output: Smith


抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Anonymous type」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.